<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="http://localhost/juanpi/Static/Home/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="http://localhost/juanpi/Static/Home/hdjs/hdjs.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://localhost/juanpi/Static/Home/hdjs/hdjs.css"/>
<link rel="stylesheet" href="http://localhost/juanpi/Static/Home/css/log_reg.css" />
<script type="text/javascript">
    $(function () {
        $('#registerForm').validate({
            username: {
                rule: {
                	required: true,
                    phone: true,
                    ajax:{url:"<?php echo U('Member/check_REG_User');?>"}
                },
                error: {
                	required: '手机号不能为空',
                    phone: '手机号错误',
                },
                success: '验证通过',
	            message: '请输入手机号'
            },
            password_reg1: {
                rule: {
                    required: true,
                    minlen: 8,
                    maxlen: 12
                },
                error: {
                    required: '密码不能为空',
                    minlen: '密码不能小于8位',
                    maxlen: '密码不能大于12位'
                },
                success: '验证通过',
	            message: '请输入密码(8~12位)'
            },
			password_reg2: {
                rule: {
                    confirm: 'password_reg1'
                },
                error: {
                    confirm: '两次密码不一致'
                },
                success: '验证通过',
	            message: '重新输入密码'
            },
        })
    });
</script>

<title>注册</title>
</head>

<body>
<!-- 头部开始 -->
<div id="header">
	<div id="top">
		<div class="left">
			<a href="http://localhost/juanpi/index.php"></a>
		</div>
		<div class="right"></div>
	</div>
</div>
<!-- 头部结束 -->

<!-- 主体开始 -->
<div id="register">
	<div class="top">
		<div class="top_l">
			<span class="olduser">新用户注册 </span>&nbsp;&nbsp;
		 注册卷皮网，赢积分换好礼！
		</div>
		<div class="top_r">
			<span class="no">已有账户</span>
		<a href="<?php echo U('Login/index');?>">立即登录</a>
		</div>
	</div>
	<div class="left">
		<!-- 登录框开始 -->
		<form id="registerForm" action="" method="post">
			<div class="inp1"><p>手机号码：</p><input type="text" name="username" placeholder="请输入手机号！"/></div>
			<div class="inp1"><p>创建密码：</p><input type="password" name="password_reg1" placeholder="请输入密码！"/></div>
			<div class="inp2"><p>确认密码：</p><input type="password" name="password_reg2" placeholder="重新输入密码" /></div>
			<div class="inp3">
				<input type="checkbox" name="angree" id="" checked="checked"/>
				<span>已看过并同意</span>
				<a href="">《卷皮网网络服务使用协议》</a>
			</div>
			<div class="inp4"><input id="aa" type="submit" value="立即注册" /></div>
		</form>
		<!-- 登录框接结束 -->
	</div>
	<div class="right">
		<img src="http://localhost/juanpi/Static/Home/images/login-bj-ad01.png" alt="" />
		<div class="line"></div>
		<!--<div class="friend">
			无需注册，快捷登录<br />
			<a class="qq" href=""></a>
			<a class="wx" href=""></a>
			<a class="wb" href=""></a>
			<a class="tb" href=""></a>
		</div>-->
	</div>
</div>
<!-- 主体结束 -->


<div id="copy">
	武汉奇米网络科技有限公司 鄂ICP备10209250号 Copyright © 2010 - 2015 JuanPi.com All Rights Reserved
</div>
</body>
</html>
